import { http } from '@/utils/http/axios'

// 登录
export function userLogin({ username, password }) {
  return http.request({
    url: '/api/user/login',
    method: 'post',
    data: {
      username,
      password,
    }
  })
}

// 获取用户信息
export function getUserInfo() {
  return http.request({
    url: '/api/user/adminInfo',
    method: 'get',
  })
}
